<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Register </title>
<link href="default.css" rel="stylesheet" type="text/css" media="screen" />
<script language="JavaScript" src="gen_validatorv4.js" type="text/javascript"></script>
</head>
<body>

<jsp:include page="/header.jsp" />

<div id="wrapper">
	<!-- start page -->
	<div id="page">
		<jsp:include page="/sideMenuLeft.jsp" />
		<!-- start content -->
		<div id="content">			
			<div class="post">
				<h1 class="title"><a href="#">Register</a></h1>
				<p class="byline"><br ></p>
				<div class="entry">
					<form action="register" method="post" id="register">
						<table border="0" align="center">
							<tr>
								<td colspan="3"></td>
							</tr>

							<tr>
								<td>
									<b>Profile Type</b>
								</td>
								<td>
									<b>:</b>
								</td>
								<td>
									<input type="radio" name="userType" id="userType" checked="checked"
										value="buyer" />
									buyer <br/>
								
									<input type="radio" name="userType" id="userType"
										value="seller" />
									seller <br/>
								
									<input type="radio" name="userType" id="userType"
										value="builder" />
									Builder
								</td>
							</tr>

							<tr>
								<td>
									<b>First Name</b>
								</td>
								<td>
									<b>:</b>
								</td>
								<td>
									<input type="text" name="firstName" id="firstName" />
								</td>
							</tr>

							<tr>
								<td>
									<b>Last Name</b>
								</td>
								<td>
									<b>:</b>
								</td>
								<td>
									<input type="text" name="lastName" id="lastName" />
								</td>
							</tr>


							<tr>
								<td>
									<b>Address Line1</b>
								</td>
								<td>
									<b>:</b>
								</td>
								<td>
									<input type="text" name="address1" id="address1" />
								</td>
							</tr>
							<tr>
								<td>
									<b>Address Line2</b>
								</td>
								<td>
									<b>:</b>
								</td>
								<td>
									<input type="text" name="address2" id="address2" />
								</td>
							</tr>


							<tr>
								<td>
									<b>Country</b>
								</td>
								<td>
									<b>:</b>
								</td>
								<td>
									<select id="country" name="country">
										<option value="" >
											Select Country Name
										</option>
										<option value="111">
											India
										</option>
										<option value="2">
											England
										</option>
										<option value="3">
											America
										</option>
										<option value="4">
											Australia
										</option>
										<option value="5">
											South Africa
										</option>
									</select>
								</td>
							</tr>

							<tr>
								<td>
									<b>State</b>
								</td>
								<td>
									<b>:</b>
								</td>
								<td>
									<select id="state" name="state">
										<option value="">
											Select State Name
										</option>
										<option value="11">
											Andhra Pradesh
										</option>
										<option value="22">
											Karnataka
										</option>
										<option value="3">
											Tamilnadu
										</option>
										<option value="4">
											Kerala
										</option>
										<option value="5">
											Delhi
										</option>
										<option value="6">
											Panjob
										</option>
										<option value="7">
											Bihar
										</option>
										<option value="8">
											Uttar Pradesh
										</option>
										<option value="9">
											Madya Pradesh
										</option>
										<option value="10">
											Gujarath
										</option>
										<option value="11">
											Maharastra
										</option>
										<option value="12">
											Nagaland
										</option>
										<option value="13">
											Mijoraam
										</option>
										<option value="14">
											Megalaya
										</option>
										<option value="15">
											Gova
										</option>
									</select>
								</td>
							</tr>

							<tr>
								<td>
									<b>District</b>
								</td>
								<td>
									<b>:</b>
								</td>
								<td>
									<select id="district" name="district">
										<option value="select">
											Select District Name
										</option>
										<option value="1">
											Guntur
										</option>
										<option value="6">
											Prakasam
										</option>
										<option value="2">
											Krishna
										</option>
										<option value="4">
											Nellore
										</option>
										<option value="5">
											Kadapa
										</option>
										<option value="6">
											Srikakulam
										</option>
										<option value="7">
											Vijaya Nagaram
										</option>
										<option value="8">
											Visakapatnam
										</option>
										<option value="9">
											East Godavari
										</option>
										<option value="10">
											West Godavaris
										</option>
										<option value="11">
											Nalgonda
										</option>
										<option value="12">
											Kammam
										</option>
										<option value="13">
											Chitture
										</option>
										<option value="14">
											Ananthapuram
										</option>
										<option value="15">
											Karnole
										</option>
										<option value="16">
											MehaboobNagar
										</option>
										<option value="17">
											Karim Nagar
										</option>
										<option value="18">
											Warangal
										</option>
										<option value="19">
											Adhilabad
										</option>
										<option value="20">
											Medak
										</option>
										<option value="21">
											Ranga Reddy
										</option>
										<option value="22">
											Nijamabad
										</option>


									</select>
								</td>
							</tr>

							<tr>
								<td>
									<b>Age</b>
								</td>
								<td>
									<b>:</b>
								</td>
								<td>
									<input type="text" name="age" id="age" />
								</td>
							</tr>

							<tr>
								<td>
									<b>Gender</b>
								</td>
								<td>
									<b>:</b>
								</td>
								<td>
									<input type="radio" name="gender" id="gender" checked="checked" value="M" />
									Male <br/>
									<input type="radio" name="gender" id="gender" value="F" />
									Female
								</td>
							</tr>

							<tr>
								<td>
									<b>Contact Number1</b>
								</td>
								<td>
									<b>:</b>
								</td>
								<td>
									<input type="text" name="contactNumber1" id="contactNumber1" />
								</td>
							</tr>

							<tr>
								<td>
									<b>Contact Number2</b>
								</td>
								<td>
									<b>:</b>
								</td>
								<td>
									<input type="text" name="contactNumber2" id="contactNumber2" />
								</td>
							</tr>

							<tr>
								<td>
									<b>Pincode</b>
								</td>
								<td>
									<b>:</b>
								</td>
								<td>
									<input type="text" name="zip" id="zip" />
								</td>
							</tr>

							<tr>
								<td>
									<b>Email Id </b>
								</td>
								<td>
									<b>:</b>
								</td>
								<td>
									<input type="text" name="emailId" id="emailId" />
								</td>
							</tr>

							<tr>
								<td>
									<b>Password</b>
								</td>
								<td>
									<b>:</b>
								</td>
								<td>
									<input type="password" name="password" id="password" />
								</td>
							</tr>

							<tr>
								<td>
									<b>Confirm Password</b>
								</td>
								<td>
									<b>:</b>
								</td>
								<td>
									<input type="password" name="confirmPassword"
										id="confirmPassword" />
								</td>
							</tr>

							<tr></tr>
							<tr></tr>
							<tr></tr>

							<tr>
								<td></td>
								<td></td>
								<td>
									<input type="submit" value="submit" />
								<td>
							</tr>

						</table>
					</form>

					<script language="JavaScript" type="text/javascript">//<![CDATA[
//You should create the validator only after the definition of the HTML form
  var frmvalidator  = new Validator("register");
  frmvalidator.EnableMsgsTogether();
 
  frmvalidator.addValidation("profileType","req","Please select Profile Type");
 
  frmvalidator.addValidation("firstName","req","Please enter your First Name");
  frmvalidator.addValidation("firstName","minlen=4","Min length for User Name is 4");
  frmvalidator.addValidation("firstName","maxlen=10","Max length for User Name is 10");
  
  frmvalidator.addValidation("lastName","req","Please enter your Last Name");
  frmvalidator.addValidation("lastName","minlen=4","Min length for Last Name is 4");
  frmvalidator.addValidation("lastName","maxlen=10","Max length for Last Name is 10");
  
  frmvalidator.addValidation("address1","req","Please enter your address");
  
  frmvalidator.addValidation("country","numeric","Please select Country Name");
  
  frmvalidator.addValidation("state","numeric","Please select state Name");
  
  frmvalidator.addValidation("district","numeric","Please District Name");
  
  frmvalidator.addValidation("age","req","Please Enter Your age");
  frmvalidator.addValidation("age","numeric","Please Enter Your age");
  
  frmvalidator.addValidation("gender","req","Please select the gender");
  
  frmvalidator.addValidation("contactNumber1","req","Please enter your Contact Number");
  
  frmvalidator.addValidation("zip","req","Please enter your Pincode Number");
  frmvalidator.addValidation("zip","minlen=6");
  
  frmvalidator.addValidation("emailId","req","Please enter your Email Id");
  frmvalidator.addValidation("emailId","email","Please enter a valid email address");
  
    
  frmvalidator.addValidation("password","req","Please enter your Password");
  frmvalidator.addValidation("password","minlen=4","Min length for Password is 4");
  frmvalidator.addValidation("password","maxlen=20","Max length for Password is 20"); 
  
  frmvalidator.addValidation("confirmPassword","req","Please Re-type your Password");
  frmvalidator.addValidation("confirmPassword","minlen=4","Min length for Password is 4");
  frmvalidator.addValidation("confirmPassword","maxlen=20","Max length for Password is 20");  
  
  frmvalidator.addValidation("confirmPassword","eqelmnt=password","The confirmed password is not same as password"); 
  
//]]></script>
				</div>
			</div>
			
		</div>
		<!-- end content -->
		<!-- start sidebars -->
		<jsp:include page="/sideMenuRight.jsp" />
		<!-- end sidebars -->
		<div style="clear: both;">&nbsp;</div>
	</div>
	<!-- end page -->
</div>
<jsp:include page="/footer.jsp" />
</body>
</html>